package com.ming.multifunction.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 交友帖子表
 * @TableName interest
 */
@TableName(value ="interest",autoResultMap = true)
@Data
public class Interest implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 发布者id
     */
    @TableField(value = "userId")
    private Long userId;

    /**
     * 兴趣描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 标签 json 列表
     */

    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> tags;

    /**
     * 图片
     */
    @TableField(value = "imageUrl")
    private String imageUrl;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 是否删除
     */
    @TableField(value = "isDelete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}